﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TodoLister.Models;

namespace TodoLister.Services
{
    /// <summary>
    /// 文件存储服务接口
    /// </summary>
    public interface IFileStorageService
    {
        /// <summary>
        /// 保存待办事项列表
        /// </summary>
        /// <param name="items">待办事项列表</param>
        /// <returns>保存任务</returns>
        Task SaveItemsAsync(IEnumerable<TodoItem> items);

        /// <summary>
        /// 加载待办事项列表
        /// </summary>
        /// <returns>待办事项列表</returns>
        Task<IEnumerable<TodoItem>> LoadItemsAsync();
    }
}
